<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <script src="jquery-3.6.0.min.js"></script>
</head>
<body>
  <script>
    $(function () {
      $('div').css('background-color', 'pink')
    });
  </script>
  <div>页面加载事件</div>
</body>
</html>